import { handleRequest } from './index'
import { safetyApiUrl } from '@/api/config.js'
import request2 from '@/utils/request2'

// 获取-旁站列表
export function getSideStandList(data) {
  return handleRequest({
    url: '/side-stand/list',
    method: 'post',
    data
  })
}

// 获取-旁站详情
export function getSideDetail(params) {
  return handleRequest({
    url: '/side-stand',
    method: 'get',
    params
  })
}

// 打印-旁站详情
export function getSideDetailPrint(params) {
  return handleRequest({
    url: '/side-stand/print',
    method: 'get',
    params
  })
}

// 删除-旁站详情
export function del(params) {
  return request2({
    url: safetyApiUrl + '/side-stand/delete/' + params.id,
    method: 'post',
    params
  })
}
